<xmp type="template" name="text_input">
    <input type="text" name="{{name}}" class="input default {{title}}" />
</xmp>

<xmp type="template" name="select_input">
    <select name="{{name}}" class="select {{class}}">
        <option value="">--请选择--</option>
        {{#each options}}
        <option value="{{value}}">{{title}}</option>
        {{/each}}
    </select>
</xmp>
<xmp type="template" name="input.text.index">
    <div>
        <div>{{title}}</div>
        {{#> "text_input","$This"}}
    </div>
</xmp>
<xmp type="template" name="input.select.index">
    <div>
        <div>{{title}}</div>
        {{#> "select_input","$This"}}
    </div>
</xmp>

<xmp type="template" name="info.table.index">
    <table class="table striped ">
        <thead>
            <tr>
                <td> 姓名 </td> <td> 所属课程 </td> 
                <td> 报名时间 </td> <td> 应收账款 </td>
                <td> 付款方式 </td> <td> 属性 </td>
                <td> 操作 </td>
            </tr>
        </thead>
        <tbody>
            {{#each lines}}
            <tr id="{{id}}">
                {{#each grids}}
                <td>{{grid}}</td>
                {{/each}}
                <td><a href="" class="icon-pencil"></a>
                </td>
            </tr>
            {{/each}}
        </tbody>
    </table>
</xmp>
